#pragma once
#include "Vector.h"
#include <d3d9.h>

class CPolygon
{
protected:
	Vector *_vertices;

	int _numVertices;

public:
	CPolygon(int numVertices);
	CPolygon(const RECT &rec);
	CPolygon(const CPolygon &polygon);
	~CPolygon(void);

	CPolygon& operator =(const CPolygon &polygon);

	Vector getVertice(int index);
	inline void setVertice(int index, const Vector& v);
	const int &getLength();
	bool checkPolygon();
	Vector getFocus();
};

